package com.hxy.dao;

import com.hxy.pojo.Stuffinfo;
import com.hxy.pojo.model.GetUtilPagerequest;
import com.hxy.pojo.vo.StuffinfoAddVo;
import com.hxy.pojo.vo.StuffinfoShowByIdVo;
import com.hxy.pojo.vo.StuffinfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StuffinfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(StuffinfoAddVo record);

    StuffinfoVo selectByPrimaryKey(Integer id);

    List<Stuffinfo> selectAll();

    int updateByPrimaryKey(Stuffinfo record);

    List<StuffinfoVo> selectByPageInfo(GetUtilPagerequest getutilPagerequest);

    StuffinfoAddVo selectByIdVo(int eid);

    StuffinfoShowByIdVo selectByIdShowAllNames(StuffinfoAddVo stuffinupdatefo);

    int selectBranchPersonNum(Integer id);

    Integer selectEidByStuffName(@Param("stuffName") String stuffName, @Param("stuffPhone") String stuffPhone);

    int updateBranchByBranchId(Integer id);
    int updateBranchByBusinessIdByUpdateOne(@Param("brid") Integer brid,@Param("buid") Integer buid);


    StuffinfoAddVo selectByIdShowAllNamesByEID(Integer eidByUsername);

}